Skip to content

docs(chapter_1): add missing imports to tutorial_0_visualization#12

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/tutorial-0-path-import
May 28, 2026
Merged

docs(chapter_1): add missing imports to tutorial_0_visualization#12
Jammy2211 merged 1 commit into
mainfrom
feature/tutorial-0-path-import

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Tutorial 0 used Path(...) and al.Imaging.from_fits(...) with no imports of Path, al, or aplt. NEEDS_FIX-parked 48 days ago for this exact reason.

Three additive import lines, no logic changes.

Test plan

  • Script now progresses past the NameError: Path is not defined at line 41.
  • Next layer (a FileNotFoundError on simple__no_lens_light/data.fits because no simulator under scripts/simulator/ produces that dataset) is a separate cluster — ~14 HowTo tutorials with simulator-path mismatches that need per-tutorial dataset/simulator mapping decisions. Tracked as a follow-up.

🤖 Generated with Claude Code

Tutorial used `Path("dataset") / "imaging" / "simple__no_lens_light"`
and `al.Imaging.from_fits(...)` but had no imports of `Path`, `al`, or
`aplt`. Crashed at line 41 with `NameError: name 'Path' is not
defined` (NEEDS_FIX-parked 48 days). Add the three missing imports
in the literate-style position just before the first use, matching
the convention of other tutorials in this chapter.

Path import now lets the script progress past the NameError; the
script then hits a separate `FileNotFoundError` because no simulator
in `scripts/simulator/` matches the `simple__no_lens_light` dataset
name. That's a separate cluster (HowTo simulator-path mismatches
across ~14 tutorials) — out of scope for this hotfix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit d3db31c into main May 28, 2026
6 checks passed
@Jammy2211 Jammy2211 deleted the feature/tutorial-0-path-import branch May 28, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant